package com.zjsru.product.clients;

import com.zjsru.product.pojo.Result;
import com.zjsru.product.fallback.OrderClientFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;


@FeignClient(name = "order-service", fallback = OrderClientFallback.class)
public interface OrderClient {
    @GetMapping("/order/query/user/{userId}/")
    Result queryOrderByUserId(@PathVariable("userId") Long userId);
}
